package cn.tedu.charging.staff.feign;

import cn.tedu.charging.common.pojo.param.RoleQuery;
import cn.tedu.charging.common.pojo.po.RoleStaff;
import cn.tedu.charging.common.pojo.response.JsonResult;
import cn.tedu.charging.common.pojo.vo.RoleVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("roleService")
public interface RoleClient {
    @PostMapping("/v1/role/selectRoleStaff")
    JsonResult<List<RoleStaff>> selectRoleStaff(@RequestBody RoleStaff roleStaff);
    @PostMapping("/v1/role/select")
    JsonResult<List<RoleVO>> selectRole(@RequestBody RoleQuery roleQuery);
}
